<?php


namespace app\index\controller;

use app\admin\model\About as AboutModel;

class About extends Base
{
    public function index()
    {
        $abouts = AboutModel::where(['status'=>1])->select();
        $id = input('id',1);
        $about = AboutModel::find($id);
        //halt($about);
        $type = $id;
        return $this->view->fetch('',[
            'type' => $type,
            'id' => $id,
            'abouts' => $abouts,
            'about' => $about,
        ]);
    }
}